package com.naiterui.ehp.bs.search.service;

import com.naiterui.common.repository.page.PageParamVO;
import com.naiterui.common.repository.page.PageVO;
import com.naiterui.ehp.bp.support.exception.BusinessException;
import com.naiterui.ehp.bs.search.vo.DiagnosisVO;

import java.util.List;

/**
 * 诊断索引服务
 *
 * @author chenlin
 */
public interface IDrDiagnosisService {

    /**
     * 更新所有的标准库索引
     *
     * @return
     */
    long findStardandDiagnosisIndex() throws BusinessException;

    long findDiagnosisGb95Index() throws BusinessException;

    /**
     * 根据关键字搜索诊断
     *
     * @param doctorId
     * @param key
     * @param skuIds
     * @param paramVo
     * @return
     */
    PageVO<DiagnosisVO> searchDiagnosisList(Long doctorId, String key, List<Long> skuIds, PageParamVO paramVo) throws BusinessException;

    /**
     * 中医诊断(辨病)
     *
     * @param key
     * @param paramVo
     * @return
     */
    PageVO<DiagnosisVO> searchDiagnosisGb95List(String key, PageParamVO paramVo) throws BusinessException;

}